#!/usr/bin/env python
# _*_coding:utf-8_*_

"""
@author:gao
@file: testDemo.py
@time: 2018/09/{DAY}
"""

import configparser


def get_ini_info(path, section, option):
    con = configparser.ConfigParser()
    con.read(path)
    value = con.get(section, option)
    if value:
        return value


def get_ini_info_under_section(path, section):
    con = configparser.RawConfigParser()
    con.read(path)
    value = con.items(section)
    if value:
        return value
